package com.iw.adoms.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import com.iw.core.orm.hibernate.BaseEntity;

@Entity
@Table(name = "qr_goods_code")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "uri", "path", "new" })
public class QrGoodsCode extends BaseEntity {

	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
	@JoinColumn(name = "box_id")
	private QrBoxCode box; // 所属箱码

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "storage_batch_id")
	private StorageBatch storageBatch; // 所属入库的批次

	private String wCode; // 流水码
	private String qrCode; // 二维码
	private String iCode; // 积分码
	private String state; // 状态
	private String innerNum; // 内部编号

	private String memo; // 备注

	public QrBoxCode getBox() {
		return box;
	}

	public void setBox(QrBoxCode box) {
		this.box = box;
	}

	public String getwCode() {
		return wCode;
	}

	public void setwCode(String wCode) {
		this.wCode = wCode;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public String getiCode() {
		return iCode;
	}

	public void setiCode(String iCode) {
		this.iCode = iCode;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getInnerNum() {
		return innerNum;
	}

	public void setInnerNum(String innerNum) {
		this.innerNum = innerNum;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public StorageBatch getStorageBatch() {
		return storageBatch;
	}

	public void setStorageBatch(StorageBatch storageBatch) {
		this.storageBatch = storageBatch;
	}

}